@echo off
setlocal
call :url_prompt
set stsadm="C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\BIN\"
echo.

echo Removing ILP from %webappurl%

echo retracting solution Chaks.SharePoint.Docs.ILP.wsp from %webappurl% ....
%stsadm%\stsadm -o retractsolution -name Chaks.SharePoint.Docs.ILP.wsp -local -url %webappurl%

echo.
echo.

echo Performing iisreset...
echo.
iisreset

GOTO:EOF

:url_prompt
echo Enter URL of the web application (e.g., http://mysite):
set /p webappurl=
echo.
echo Enter the relative URL of the web in the web application (e.g., /myweb):
set /p siteurl=
set siteurl=%webappurl%%siteurl%
GOTO:EOF
